//
//  CameraViewController.h
//  FlowChart
//
//  Created by yilong.zhang on 11-4-2.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CUploadPageCtrl.h"
#import "CUploadPreView.h"
#import "AppConfig.h"

@class AppConfig;

@protocol CameraImagePickerDelegate;

@interface CameraViewController : UIImagePickerController <UIImagePickerControllerDelegate, UINavigationControllerDelegate, UploadPreViewDelegate>

@property (nonatomic, assign) UIButton  *m_CancelBtn;
@property (nonatomic, assign) UIButton  *m_TakePhotoBtn;

@property (nonatomic, assign) id<CameraImagePickerDelegate> m_delegate;
@property (nonatomic, assign) id        m_Target;
@property (nonatomic, assign) SEL       m_Action;
@property (nonatomic, retain) UIImage   *m_Image;
@property (nonatomic, assign) CUploadPreView *m_PreView;


-(id)initWithSize:(CGSize)size;
-(void)ShowPreView;
-(void)DidImageSelected:(UIImage*)image;
-(void)TakeImages:(UIButton*)sender;

@end

@protocol CameraImagePickerDelegate <NSObject>

@optional
-(void)CImagePickerDidCancel;
-(void)CImagePickerDidSelectImage:(UIImage*)image;

@end

